package com.bawei.login.model

import com.bawei.login.api.LoginApiServer
import com.bawei.login.entity.LoginResultEntity
import okhttp3.RequestBody
import javax.inject.Inject

/**
 * Author: Jason Zhang
 * Date: 2024/5/25
 * Desc: 登录的仓库实体
 */
class LoginRepository @Inject constructor(private val apiServer: LoginApiServer){

    suspend fun loginToServer(body: RequestBody): LoginResultEntity = apiServer.loginToServer(body)

    suspend fun registerToServer(body: RequestBody): LoginResultEntity = apiServer.registerToServer(body)



}